﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.DirectoryServices;
using System.Collections;
using Domain.ActiveDirectory.Accessor;
using Domain.ActiveDirectory.Model;
using System.Diagnostics;
using Domain.ActiveDirectory.Provider;
using System.DirectoryServices.AccountManagement;

namespace ConsoleSandox
{
    public class Program
    {
        public static void Main(string[] args)
        {
            ActiveDirectoryDataProvider adProvider = new ActiveDirectoryDataProvider();

            Group group = adProvider.GetGroupsByName("244 GM").FirstOrDefault();
            User user = adProvider.GetUsersByUsername("Adam Veldhousen").FirstOrDefault();
            adProvider.RemoveUserFromGroup(group, user);
            Console.ReadLine();
        }
    }
}
